#pragma once
#include <QString>
#include <QList>

namespace apollo
{
	namespace core
	{
		class ConnectionConfig
		{
		public:
			class UrlConfig
			{
			public:
				QString name;
				QString schema;
				QString ip;
				int port;		
			};
		private:
		public:
			QList<UrlConfig> urls;
			QString connectionName;
			bool isPrimary;
			int connectingTimeout; //unit is ms;
			int loginTimeout;

		public:
			ConnectionConfig(void) : connectingTimeout(30000), loginTimeout(5000), isPrimary(true){}
			~ConnectionConfig(void);
		};
	}}
